send

abstract fun send(payload: CustomPayload, playerEntity: PlayerEntity?)

Sends a payload to a receiver. If the server player is defined, will be an S2C transmission, otherwise C2S

Check if you can send at all first with canSend

Author

fzzyhmstrs

Since

0.4.1

Parameters

payload

CustomPayload the payload to send

playerEntity

PlayerEntity, nullable - the server player if you are sending S2C, null or the client player for C2S